//
//  HHNNBViewController.m
//  tantan
//
//  Created by SQHH on 2017/12/20.
//  Copyright © 2017年 SQHH. All rights reserved.
//

#import "HHNNBViewController.h"

@interface HHNNBViewController ()

/// CDSC
@property (nonatomic, strong) UIPageControl *CACDS;

/// CD
@property (nonatomic, strong) UISwitch *CSCSD;

/// CXC
@property (nonatomic, strong) UIActivityIndicatorView *CSXCVSD;

/// VSDAV
@property (nonatomic, strong) UIPageControl *SDVSAD;

@end

@implementation HHNNBViewController

#pragma mark - # Event Response
- (void)CACDSValueChanged:(UIPageControl *)sender {
	
}

- (void)CSCSDValueChanged:(UISwitch *)sender {
	
}

- (void)SDVSADValueChanged:(UIPageControl *)sender {
	
}

#pragma mark - # Life Cycle
- (void)loadView {
	[super loadView];
	[self.view addSubview:self.CACDS];
	[self.view addSubview:self.CSCSD];
	[self.view addSubview:self.CSXCVSD];
	[self.view addSubview:self.SDVSAD];
}

- (void)viewDidLoad {
	[super viewDidLoad];
}

#pragma mark - # Getter
- (UIPageControl *)CACDS {
	if (!_CACDS) {
		_CACDS = [[UIPageControl alloc] init];
		[_CACDS addTarget:self action:@selector(CACDSValueChanged:) forControlEvents:UIControlEventValueChanged];
		[_CACDS setNumberOfPages:3];
		[_CACDS setCurrentPage:1];
	}
	return _CACDS;
}

- (UISwitch *)CSCSD {
	if (!_CSCSD) {
		_CSCSD = [[UISwitch alloc] init];
		[_CSCSD addTarget:self action:@selector(CSCSDValueChanged:) forControlEvents:UIControlEventValueChanged];
		[_CSCSD setOn:NO];
	}
	return _CSCSD;
}

- (UIActivityIndicatorView *)CSXCVSD {
	if (!_CSXCVSD) {
		_CSXCVSD = [[UIActivityIndicatorView alloc] init];
		[_CSXCVSD setFrame:CGRectMake(12, 0, 0, 0)];
	}
	return _CSXCVSD;
}

- (UIPageControl *)SDVSAD {
	if (!_SDVSAD) {
		_SDVSAD = [[UIPageControl alloc] init];
		[_SDVSAD addTarget:self action:@selector(SDVSADValueChanged:) forControlEvents:UIControlEventValueChanged];
	}
	return _SDVSAD;
}

@end
